<template>
    <main>
        <div id="myheader">
            <div class="myheader">
                <div class="userinfo">
                    <div class="userinfo_left">
                        <div class="userinfo_img">
                            <img :src="imgheader" alt="">
                        </div>
                        <div class="userinfo_name">
                            <div style="padding-bottom:.75rem;display:flex;">
                                <div>
                                    <span>{{username}}</span>
                                </div>
                                <div class="vip">

                                </div>
                            </div>
                            <div class="icon">
                                <span>京享值</span>
                                <span class="white">小白信用{{user}}</span>
                            </div>
                        </div>
                    </div>
                    <div class="userinfo_right"></div>
                </div>
                <div class="list">
                    <div v-for="(item,index) in listdata" :key="index">
                        <span style="font-weight: bold;padding-bottom:.625rem;">{{item.listnum}}</span>
                        <br>
                        <span style=" font-size: .75rem;">{{item.listname}}</span>
                    </div>
                </div>
                <div class="plus">
                    <div class="title">
                        <div class="pubs_title">免费试用 立领1张运费券</div>
                        <div class="pubs_button">0元试用</div>
                    </div>
                </div>
            </div>
        </div>
    </main>
</template>
<script>
export default {
    data:()=>({
        imgheader:'https://img11.360buyimg.com/jdphoto/s120x120_jfs/t21160/90/706848746/2813/d1060df5/5b163ef9N4a3d7aa6.png',
        username:'余生京东测试号',
        user:'72.2',
        listdata:[
            {
                listnum:1,
                listname:'商品收藏'
            },
             {
                listnum:5,
                listname:'店铺收藏'
            },
            {
                listnum:3,
                listname:'我的足迹'
            }
        ]
    })
}
</script>
<style scoped lang="less">
// 我的头部
@w:23.4375rem;
@h:11.875rem;
#myheader{
    width: @w;
    height: @h;
    background: url('https://img12.360buyimg.com/img/s1500x886_jfs/t1/115726/22/13102/240974/5f18fb83Ee40e230b/d4f2a67087fd443a.png') no-repeat;
    background-size: 100% 100%;
    .myheader{
        width: @w;
        height: @h;
        padding-top: .75rem;
        padding-bottom: .625rem ;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        .userinfo{
            width: @w - 2.5rem;
           
            height:4.375rem;
            display: flex;
            justify-content: space-between;
            .userinfo_left{
                width: 19.0625rem;
                height: 100%;
                
                display: flex;
                justify-content: space-between;
                .userinfo_img{
                    width: 3.25rem;
                    height: 3.25rem;
                    img{
                        width: 3.125rem;
                        height: 3.125rem;
                    }
                }
                .userinfo_name{
                    width: 19.0625rem - 4.375rem;
                    text-align: left;
                    color: #fff;
                }
                .vip{
                   width: 1.875rem;
                    height: .9375rem;
                    position: relative;
                }
                .vip::before{
                   content: '';
                   position: absolute; 
                   width: 3.75rem;
                  height: 3.9375rem;
                  background: url('https://img12.360buyimg.com/img/s300x60_jfs/t1/113596/13/13099/22116/5f1a4bddEb7f1a190/8581e1b9765e15ff.png') no-repeat scroll -3.75rem 0rem;
                  transform: scale(.25);
                  top:-1.125rem;
                  left: -1.0625rem;
                }
                .icon{
                    font-size: .625rem;
                    span{
                        padding:0rem .625rem ;
                        background: rgba(0,0,0,.16);
                        text-align: center;
                        border-radius:.625rem;
                    }
                }
                .white{
                    position: relative;
                }
                .white::after{
                    display: block;
                    content: "";
                    width: 4px;
                    height: 4px;
                    -webkit-transform-origin: 50%;
                    transform-origin: 50%;
                    -webkit-transform: rotate(135deg);
                    transform: rotate(135deg);
                    position: absolute;
                    right: .3125rem;
                    top: .375rem;
                    border-top: .0625rem solid hsla(0,0%,100%,.7);
                    border-left: .0625rem solid hsla(0,0%,100%,.7);
                }
            }
            .userinfo_right{
                width: 1.25rem;
                height: 1.25rem;
                background:url('https://img12.360buyimg.com/img/s40x40_jfs/t1/125926/3/7446/2181/5f15510bE3f46d483/4f25fadf9ebe91d3.png');
                background-size: 100%;
            }
        }
        .list{
            width: @w - 2.5rem;
            height:3.125rem ;
            margin-top: -1.25rem / 2;
            display: flex;
            div{
                width: 7.25rem;
                height: 3.125rem;
                color: #fff;
               
            }
        }
        .plus{
            width: @w - 2rem;
            height: 2.625rem;
            background: url('https://img12.360buyimg.com/img/s678x99_jfs/t1/112839/2/12981/33105/5f17e12aE602bb83e/8a736742745d79cf.png') no-repeat;
            background-size: 100% 100%;
            margin-top: -0.625rem;
            display: flex;
            justify-content: center;
            .title{
                width: 20rem;
                height: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                .pubs_title{
                    width: 13.75rem;
                    padding-left: 2.25rem;
                    position: relative;
                    display: flex;
                    color:#ffe678 ;
                    font-size: .75rem;
                   justify-content: center;
                   align-items: center;
                    
                }
                .pubs_title::before{
                    content: '';
                    width: 3.5625rem;
                    height: .75rem;
                    background: url('https://img12.360buyimg.com/img/s113x21_jfs/t1/132167/33/1122/2973/5ed5c74bE41e02c41/5ae83d09fff874cb.png') no-repeat 50%;
                    background-size: 100% 100%;
                    position: absolute;
                    left: 0rem;   
                }
                .pubs_title::after{
                    position: absolute;
                    content: "";
                    width: .0625rem;
                    height: .4375rem;
                    background: #ffe678;
                    left: 4.1875rem;
                    top: 35%;
                }
                .pubs_button{
                    font-size: .6875rem;
                    padding:0rem .625rem;
                    background-image: linear-gradient(-50deg,#ffe36f,#f6d44e);
                    border-radius: .5625rem;
                    height: 1.125rem;
                    line-height: 1.125rem;
                    display: flex;
                    white-space: nowrap;
                }
                .pubs_button::after{
                    content: "";
                    display: inline-block;
                    vertical-align: middle;
                    border-left: .1875rem solid #262626;
                    border-top: .1875rem solid transparent;
                    border-bottom:.1875rem solid transparent;
                    height: .01875rem;
                    margin-left: .1875rem;
                    margin-top: .4375rem;
                }
            }
        }
    }
}
</style>